API Help
Eplan.EplApi.HEServices Namespace / PrePlanningService Class / NumberPCTLoops Method / NumberPCTLoops(ICollection<PlanningSegment>) Method
Collection of objects to numerate. Can't be null or empty. Objects other then PCTLoop or StructureSegment are ignored.
Example

In This Topic
    NumberPCTLoops(ICollection<PlanningSegment>) Method
    In This Topic
    Numbers given PCTLoops. It is possible to number all PCTLoops in a given StructureSegment. Please look at the examples.
    Syntax
    public void NumberPCTLoops( 
       ICollection<PlanningSegment> colObjects
    )
    public:
    void NumberPCTLoops( 
       ICollection<PlanningSegment^>^ colObjects
    ) 

    Parameters

    colObjects
    Collection of objects to numerate. Can't be null or empty. Objects other then PCTLoop or StructureSegment are ignored.
    Exceptions
    ExceptionDescription
    Thrown when parameter colObjects is a null value.
    Thrown when collection colObject is empty.
    If an Error occurred while numbering PCTLoops.
    Example
    The following examples shows how to use method NumberPCTLoops.
    //Numerate all PCTLoops in oStructureSegment1                
    new PrePlanningService().NumberPCTLoops(new List<PlanningSegment>() { oStructureSegment1 });
    
    
    //Numerate two PCTLoops             
    new PrePlanningService().NumberPCTLoops(new List<PlanningSegment>() { oPCTLoop2_1, oPCTLoop2_2 });
    
    
    See Also